<style type="text/css">
	.icon1 {
		width: .8rem; height: .8rem;
		vertical-align: -0.15em;
		fill: currentColor;
		overflow: hidden;
	}
.fui-block-group {
    border-radius:0.5rem
}
.fui-block-group .fui-block-child {
    background: #fff;
}
.fui-block-group .fui-block-child .icon {height: auto; padding-top: 0.3rem; text-align: center; font-size: 1.3rem;}
.fui-block-group .fui-block-child .icon i { font-size:1.3rem;}
.fui-block-group .fui-block-child .title {
    height: auto;
    font-size: 0.7rem;
    line-height: 1.4
    text-align: center;
    color: #333;
}
</style>
<!--<div class="fe-floatback right" style="left:0.2rem">
		<a href="javascript:void(0);" ng-click="access_json('jy_weishop/index/')">
		<i class="icon jinyunicon icon-back"></i>
		</a>
</div>-->
<div class="fui-page fui-page-current page-commission-index ">
    <div class='fui-content'>
	<div ng-if="pagedata.tips" class="tips tips-yellow" style="margin:0">
			<i class="fa fa-bullhorn"></i> {{pagedata.tips}}
	</div>
	<div style="background: {{main.syscolor||'#05c175'}};padding:1rem 0.5rem;margin-top:0;padding-bottom:1.6rem;">
			<div class="fui-cellone" style="padding:0">
				<div class="fui-cellone-label" style="width:auto;">
					<img style="border-radius: 0.2rem;width:2.2rem;height:2.2rem" ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}" />
				</div>
				<div class="fui-cellone-text" style="font-size:0.7rem;color:#fff;padding-left:0.5rem">
					<div class="bold">{{pagedata.member.nickname || '昵称'}} <span style="font-size:0.5rem;margin-top:0.3rem;color:#f2f2f2">({{pagedata.member.level}})</span></div>
					<div style="font-size:0.55rem">推荐人 ：{{pagedata.member.agent.nickname}}</div>
					<div>
						<span style="font-size:0.6rem;margin-top:0.3rem;color:#f2f2f2" ng-click="tool.clip(pagedata.member.mid)">邀请码：{{pagedata.member.mid}} <i class="icon icon-copy" style="font-size:0.6rem"></i></span>
					</div>
				</div>
				<div class="fui-cellone-remark noremark" style="font-size:0.7rem;color:#fff;" href="javascript:;" ng-click="access_json('core/member.set/')">
					 <a style="border-radius: 1rem;padding:0.2rem 0.3rem;font-size:0.6rem; background-color: rgb(255, 255, 255, 0.3);;width:auto;color:#fff"><i class="icon icon-set" style="font-size:0.6rem"></i> 设置</a>
				</div>
			</div>	
			<div class="fui-icon-group noborder col-3" style="padding-top:0.5rem">
					<div class="fui-icon-col-sm external" style="margin:0">
								<div href="javascript:;" ng-click="access_json('core/member.feecard/')">
									<div class="subtitle" style="font-size:0.7rem;color:#fff">我的余额 <a style="border-radius: 1rem;padding:0.2rem 0.3rem;font-size:0.6rem; background-color: rgb(255, 255, 255, 0.3);;width:auto;color:#fff">提现</a></div>
									<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.member.credit2 || '0.00'}}</div>					
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class="subtitle" style="font-size:0.7rem;color:#fff">商户业绩</div>
									<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.orderfee || '0.00'}}</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div href="javascript:;" ng-click="access_json('jy_weishop/coupon.myindex/')">
									<div class="subtitle" style="font-size:0.7rem;color:#fff">商户单量</div>
									<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.ordernum || 0}}</div>
								</div>
					</div>
			</div>			
	</div>
	<div style="padding:0.5rem;margin-top:-2.5rem">
		<div class="fui-cell-group radius">
			<div ng-include="sys_html('_notice')" class="radius" style="padding:0;"></div>
			<a class="fui-cell external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url)">
				<div class="fui-cell-text bold">我的订单</div>
				<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
			</a>
			<div class="fui-icon-group col-5 selecter">
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url+'/status=0')">
									<div class="badge" ng-if="pagedata.statics.status0>0">{{pagedata.statics.status0}}</div>
									<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
									<div class="text">待付款</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url+'/status=1')">
									<div class="badge" ng-if="pagedata.statics.status1>0">{{pagedata.statics.status1}}</div>
									<div class="icon icon-orange radius"><i class="icon icon-daifahuo"></i></div>
									<div class="text">待发货</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url+'/status=2')">
									<div class="badge" ng-if="pagedata.statics.status2>0">{{pagedata.statics.status2}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
									<div class="text">待收货</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url+'/status=3')">
									<div class="badge" ng-if="pagedata.statics.status3>0">{{pagedata.statics.status3}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-survey1"></i></div>
									<div class="text">待评价</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url+'/status=5')">
									<div class="badge" ng-if="pagedata.statics.status4>0">{{pagedata.statics.status4}}</div>
									<div class="icon icon-pink radius"><i class="icon icon-tuihuanhuo1"></i></div>
									<div class="text">退换货</div>
								</a>
			</div>
		</div>
		<div class="fui-cell-group radius">
			<div class="fui-cell external" href="javascript:;" ng-click="access_json('core/member.credit_log/')">
				<div class="fui-cell-text">
				<div class="bold">我的资产</div>
				<div class="gray" style="font-size:0.65rem">每日的回补，将于凌晨0点左右释放</div>
				</div>
				<div class="fui-cell-remark" style="font-size: 0.65rem;">明细</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-text">
					<div class="syscolor">我的余额</div>
					<div class="syscolor">{{pagedata.member.credit2 || '0.00'}}</div>
				</div>
				<div class="fui-cell-text gray radius" style="font-size:0.65rem;background:#f2f2f2;padding:0.3rem">
					<div>累计收入</div>
					<div class="syscolor" style="padding-bottom:0.3rem">{{pagedata.data.credit2inall || '0.00'}}</div>
					<div>今日收入</div>
					<div class="syscolor" style="padding-bottom:0.3rem">{{pagedata.data.credit2inday || '0.00'}}</div>
					<div>累计支出</div>
					<div class="orange" style="padding-bottom:0.3rem">{{pagedata.data.credit2outall || '0.00'}}</div>
					<div>昨日支出</div>
					<div class="orange">{{pagedata.data.credit2outday || '0.00'}}</div>
				</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-text syscolor">
					<div class="syscolor">剩余分润</div>
					<div class="syscolor">{{pagedata.data.commission_1 || '0.00'}}</div>
				</div>
				<div class="fui-cell-text gray radius" style="font-size:0.65rem;background:#f2f2f2;padding:0.3rem">
					<div>累计收入</div>
					<div class="syscolor" style="padding-bottom:0.3rem">{{pagedata.data.commission_total || '0.00'}}</div>
					<div>今日收入</div>
					<div class="syscolor" style="padding-bottom:0.3rem">{{pagedata.data.commission_totalday || '0.00'}}</div>
					<div>累计结算</div>
					<div class="orange" style="padding-bottom:0.3rem">{{pagedata.data.balance_total || '0.00'}}</div>
					<div>今日结算</div>
					<div class="orange">{{pagedata.data.balance_totalday || '0.00'}}</div>
				</div>
			</div>
		</div>
		<div class="fui-cell-group radius">
			<div class="fui-cell external">
				<div class="fui-cell-text bold">服务与工具</div>
				<div class="fui-cell-remark noremark" style="font-size: 0.65rem;"></div>
			</div>
			<div class="fui-icon-group col-4 selecter">
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_mzhaoshang/commission/')">
						<div class="icon icon-green radius"><i class="icon icon-caifua"></i></div>
						<div class="text">{{pagedata.setting.commission_total}}</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_mzhaoshang/down/')">
						<div class="icon icon-green radius"><i class="icon icon-paihao0"></i></div>
						<div class="text">{{pagedata.setting.tmydown || '拓展商户'}}</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_mzhaoshang/order/')">
						<div class="icon icon-green radius"><i class="icon icon-dingdan"></i></div>
						<div class="text">商户订单</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_mzhaoshang/orderfee/')">
						<div class="icon icon-green radius"><i class="icon icon-dingdan"></i></div>
						<div class="text">分润记录</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_mzhaoshang/balance/')">
						<div class="icon icon-green radius"><i class="icon icon-wodeqianbao"></i></div>
						<div class="text">结算记录</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('core/member.feecard/')">
						<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
						<div class="text">资产管理</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_weishop/news.list/')">
						<div class="icon icon-green radius"><i class="icon icon-tuwenwenzhen"></i></div>
						<div class="text">商城动态</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('core/member.cpassword/')">
						<div class="icon icon-green radius"><i class="icon icon-password"></i></div>
						<div class="text">修改密码</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('core/member.address/')">
						<div class="icon icon-green radius"><i class="icon icon-ditu"></i></div>
						<div class="text">收货地址</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="pagedata.tokefu();">
						<div class="icon icon-green radius"><i class="icon icon-kefu"></i></div>
						<div class="text">联系客服</div>
					</a>
			</div>
		</div>
		<div class="fui-cell-group radius">
			<a ng-show="pagedata.setting.closed_qrcode!=1"  href="javascript:;" ng-click="access_json('jy_mzhaoshang/qrcode/main')" class="fui-cell">
				<div class="fui-cell-icon ">
					<i class="icon jinyunicon icon-erweima text-yellow"></i>
				</div>
				<div class="fui-cell-text">招商二维码</div>
				<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
			</a>
		</div>
    </div>
	</div>
</div>
<div ng-include="sys_html('common/_h5game',true)"></div>
<div ng-if="pagedata.pluginset.footernav.length>0" ng-click="pagedata.show_xieyi=true" class="fui-navbar-tip"><red>请先阅读</red>《{{pagedata.xieyi.title||'服务管理规则'}}》.</div>
<div ng-include="sys_html('_footer')"></div>
<div ng-if="pagedata.show_xieyi" class="popup">
	<div class="popup-body">
		<div class="popup-center">
			<i class="closed icon icon-cuowu" ng-click="pagedata.show_xieyi=false"></i>
			<div class="content-images" style="padding:0.5rem;height:20rem; overflow-y:scroll;">
					<div class="title bold" style="font-size:0.8rem">{{pagedata.xieyi.title||'服务管理规则'}} / <small>Read Ggree</small></div>
					<div class="text" style="padding-top:0.5rem;font-size:0.7rem" ng-bind-html="trust(pagedata.xieyi.content)">
					</div>
			</div>
			<div class="modal-footer">
				<div ng-click="pagedata.show_xieyi=false;pagedata.post.check=1" class="mod-check" style="width: 100%; margin: 0;">我已阅读</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
scope.pagedata.tokefu=function(){
	if(!scope.pagedata.shopset.kefutype_h5 || scope.pagedata.shopset.kefutype_h5==0){
		scope.access_json(scope.pagedata.shopset.kflink);
	}else if(scope.pagedata.shopset.kefutype_h5==1){
		scope.pagedata.kefuqr=scope.pagedata.shopset.kf_accountimg;
		scope.pagedata.showqrcode=1;
		scope.pagedata.openwxlink(item.linkurl);
	}else if(scope.pagedata.shopset.kefutype_h5==2){
		scope.access_json(scope.pagedata.shopset.appkflink);
	}else if(scope.pagedata.shopset.kefutype_h5==3){
		scope.access_json(scope.pagedata.shopset.workerh5url);
	}else if(scope.pagedata.shopset.kefutype_h5==4){
		scope.pagedata.kefuqr=scope.pagedata.shopset.guwenkfewm;
		scope.pagedata.showqrcode=1
	}
	scope.$evalAsync();
};
</script>